package com.xian.bean;

public class Temperature {
    /**
     * id
     */
    private int id;
    /**
     * 温度
     */
    private double temper;
    /**
     * 时间戳
     */
    private long timestamp;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getTemper() {
        return temper;
    }

    public void setTemper(double temper) {
        this.temper = temper;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public Temperature() {
    }

    public Temperature(int id, double temper, long timestamp) {
        this.id = id;
        this.temper = temper;
        this.timestamp = timestamp;
    }

    @Override
    public String toString() {
        return "Temperature{" +
                "id=" + id +
                ", temper=" + temper +
                ", timestamp=" + timestamp +
                '}';
    }
}
